import myaxios from "@/utils/myaxios";

export default {
//    通过这个方法得到后端数据
    getWineclassfiyList(){
        return myaxios({
            url:'/wineclassfiy/list',
            method:'get'
        })
    },
    search(page,size,searchWhere) {
        return myaxios({
            url:'/wineclassfiy/list/search/${page}/${size}',
            method:'post',
            //传递查询条件
            data:searchWhere
        })
    },
    //添加酒
    add(winefrom){
        return myaxios({
            url:'/addwineinfo',
            method:'post',
            data:winefrom
        })
    }
}
